import java.util.ArrayList;
import java.util.List;
import java.util.Date;

// 支付方式父类
abstract class Payment {
    protected double amount;

    public Payment(double amount) {
        this.amount = amount;
    }
    // 可根据需求添加其他方法
}

// 信用卡支付
class Credit extends Payment {
    private String number;
    private String type;
    private Date expireDate;

    public Credit(double amount, String number, String type, Date expireDate) {
        super(amount);
        this.number = number;
        this.type = type;
        this.expireDate = expireDate;
    }
    // 可根据需求添加其他方法
}

// 现金支付
class Cash extends Payment {
    private double cashTendered;

    public Cash(double amount, double cashTendered) {
        super(amount);
        this.cashTendered = cashTendered;
    }
    // 可根据需求添加其他方法
}

// 在线转账
class WireTransfer extends Payment {
    private String bankID;
    private String bankName;

    public WireTransfer(double amount, String bankID, String bankName) {
        super(amount);
        this.bankID = bankID;
        this.bankName = bankName;
    }
    // 可根据需求添加其他方法
}

// 支付宝
class AliPay extends Payment {
    private String number;

    public AliPay(double amount, String number) {
        super(amount);
        this.number = number;
    }
    // 可根据需求添加其他方法
}

// 微信支付
class WeixinPay extends Payment {
    private String number;

    public WeixinPay(double amount, String number) {
        super(amount);
        this.number = number;
    }
    // 可根据需求添加其他方法
}